package view;

import java.io.IOException;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 * The Main class for the Grocery List app
 * @author Lawrence Grass
 */
public class Main {

	/**
	 * Initializes the Grocery List app.
	 * @param the_args
	 * @throws IOException
	 */
	public static void main(final String[] the_args) throws IOException
	{
		//set cross-platform java look and feel.
		try
		{
			UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());		
		}
		catch (final UnsupportedLookAndFeelException e)
		{
			e.printStackTrace();
		}
		catch (final InstantiationException e)
		{
			e.printStackTrace();
		}
		catch (final IllegalAccessException e)
		{
			e.printStackTrace();
		}
		catch (final ClassNotFoundException e)
		{
			e.printStackTrace();
		}
		final GroceryListFrame groceryListView = new GroceryListFrame();
		groceryListView.setLocationRelativeTo(null);
		groceryListView.setVisible(true);

	}
}
